import * as http from '@api/http'

/**
 * @purpose 设置轮播图
 * @param options
 * @returns {Promise<T>}
 */
export function setSlide (options) {
  return http
    .post('setting.setSlide', options)
    .then(r => r.data)
}

/**
 * @purpose 获取轮播图
 * @returns {*}
 */
export function getSlide () {
  return http
    .get('setting.getSlide')
    .then(r => r.data)
}
